/**
 * 
 */
package herguan.expertadvise.web.struts.form;

/**
 * @author Nidhi Pandya
 *
 */
import herguan.expertadvise.dao.hibernate.Skill;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.*;

public class UserRegisterForm extends ActionForm {

	private String action = "add";
	private String actionUpdateData;

	private Integer id;

	private String userid;
	private String password;

	private String email;
	private String skills;
	private String experience;
	

	private String address;
	private String phno;
	
	private List<Skill> objSkill=new ArrayList<Skill>();
	 public List<Skill> getSkill() {
	        return objSkill;
	    }

	    public void setSkill(List<Skill> pSkill) {
	        this.objSkill = pSkill;
	    }
	    
	public void reset(ActionMapping mapping, HttpServletRequest request) {

		this.id = null;
		this.userid = null;
		this.password = null;
		this.email = null;
		this.address = null;
		this.phno = null;
		this.skills = null;

		this.action = "add";
		this.actionUpdateData = "";

	}

	public ActionErrors validate(

	ActionMapping mapping, HttpServletRequest request) {
		ActionErrors errors = new ActionErrors();

		return errors;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getEmail() {
		return email;
	}

	public String getSkills() {
		return skills;
	}
	public String getExperience() {
		return experience;
	}

	public void setExperience(String experience) {
		this.experience = experience;
	}

	public void setSkills(String skills) {
		this.skills = skills;
	}
	public void setEmail(String Skills) {
		this.skills = Skills;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getPhno() {
		return phno;
	}

	public void setPhno(String phno) {
		this.phno = phno;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getActionUpdateData() {
		return actionUpdateData;
	}

	public void setActionUpdateData(String actionUpdateData) {
		this.actionUpdateData = actionUpdateData;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

}
